package Boundry;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.InputPanel;
import Boundry.GenericTools.ViewDataPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.JPanel;
import javax.swing.ImageIcon;

public class ISMPanel extends InputPanel implements IPanelOperation{
	private JButton btnNewInfoSys;
	private JButton btnAssignStaff;
	private JButton btnResume;
	private JButton btnAddNewWorker;
	private JButton btnSubmitRequest;
	private JButton btnSearchRequest;
	private JButton btnViewRequests;
	private JButton btnViewWorkers;
	private JButton btnViewStatisticalInformation;
	private JLabel lblAddNewWorker;
	private JLabel lblResume;
	private JLabel lblSubmitRequest;
	private JLabel lblSearchRequest;
	private JLabel lblAssignStaff;
	private JLabel lblImg;
	
	public JButton getBtnAssignStaff() {
		return btnAssignStaff;
	}

	public JButton getBtnResume() {
		return btnResume;
	}

	public JButton getBtnAddNewWorker() {
		return btnAddNewWorker;
	}

	public JButton getBtnSubmitRequest() {
		return btnSubmitRequest;
	}

	public JButton getBtnSearchRequest() {
		return btnSearchRequest;
	}

	public JButton getBtnViewRequests() {
		return btnViewRequests;
	}

	public JButton getBtnViewWorkers() {
		return btnViewWorkers;
	}

	public JButton getBtnViewStatisticalInformation() {
		return btnViewStatisticalInformation;
	}

	
	public JButton getBtnNewInfoSys() {
		return btnNewInfoSys;
	}
	public void setBtnNewInfoSys(JButton btnNewInfoSys) {
		this.btnNewInfoSys = btnNewInfoSys;
	}
	public ISMPanel() {
		
		btnViewRequests = new JButton("");
		btnViewRequests.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/5_content_paste.png")));
		btnViewRequests.setBounds(538, 170, 85, 48);
		btnViewRequests.setSize(100, 40);
		mainPanel.add(btnViewRequests);
		
		btnViewWorkers = new JButton("");
		btnViewWorkers.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/6_social_group.png")));
		btnViewWorkers.setBounds(538, 85, 65, 48);
		btnViewWorkers.setSize(100, 40);
		mainPanel.add(btnViewWorkers);
		
		btnViewStatisticalInformation = new JButton("");
		btnViewStatisticalInformation.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/5_content_picture.png")));
		btnViewStatisticalInformation.setBounds(538, 258, 58, 48);
		btnViewStatisticalInformation.setSize(100, 40);
		mainPanel.add(btnViewStatisticalInformation);
		
		JLabel lblNewLabel = new JLabel("View Requests");
		lblNewLabel.setIcon(null);
		lblNewLabel.setBounds(548, 206, 93, 24);
		mainPanel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("View Workers");
		lblNewLabel_1.setIcon(null);
		lblNewLabel_1.setBounds(559, 118, 93, 24);
		mainPanel.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("View Statistical Report");
		lblNewLabel_2.setBounds(538, 302, 148, 14);
		mainPanel.add(lblNewLabel_2);
		
		btnNewInfoSys = new JButton("");
		btnNewInfoSys.setIcon(new ImageIcon(ISMPanel.class.getResource("/GUI/Image/12_hardware_computer.png")));
		btnNewInfoSys.setBounds(388, 170, 65, 48);
		btnNewInfoSys.setSize(100, 40);
		mainPanel.add(btnNewInfoSys);
		
		JLabel lblAddInfoSystem = new JLabel("Add new info system");
		lblAddInfoSystem.setBounds(388, 206, 141, 24);
		mainPanel.add(lblAddInfoSystem);
		
		btnAssignStaff = new JButton("");
		btnAssignStaff.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/6_social_group.png")));
		btnAssignStaff.setBounds(388, 258, 113, 57);
		btnAssignStaff.setSize(100, 40);
		mainPanel.add(btnAssignStaff);
		
		btnResume = new JButton("");
		btnResume.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/9_av_play.png")));
		btnResume.setBounds(239, 258, 128, 47);
		btnResume.setSize(100, 40);
		mainPanel.add(btnResume);
		
		btnSearchRequest = new JButton("");
		btnSearchRequest.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/2_action_search.png")));
		btnSearchRequest.setBounds(239, 85, 113, 39);
		btnSearchRequest.setSize(100, 40);
		mainPanel.add(btnSearchRequest);
		
		btnSubmitRequest = new JButton("");
		btnSubmitRequest.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/5_content_new_email.png")));
		btnSubmitRequest.setBounds(239, 170, 133, 48);
		btnSubmitRequest.setSize(100, 40);
		mainPanel.add(btnSubmitRequest);
		
		btnAddNewWorker = new JButton("");
		btnAddNewWorker.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/6_social_add_person.png")));
		btnAddNewWorker.setBounds(388, 85, 113, 48);
		btnAddNewWorker.setSize(100, 40);
		mainPanel.add(btnAddNewWorker);
		
		lblAddNewWorker = new JLabel("Add New Worker");
		lblAddNewWorker.setBounds(398, 123, 113, 14);
		mainPanel.add(lblAddNewWorker);
		
		lblResume = new JLabel("Resume Request");
		lblResume.setBounds(249, 302, 100, 14);
		mainPanel.add(lblResume);
		
		lblSubmitRequest = new JLabel("Submit Request");
		lblSubmitRequest.setBounds(249, 211, 128, 14);
		mainPanel.add(lblSubmitRequest);
		
		lblSearchRequest = new JLabel("Search Request");
		lblSearchRequest.setBounds(246, 124, 93, 14);
		mainPanel.add(lblSearchRequest);
		
		lblAssignStaff = new JLabel("Assign Staff");
		lblAssignStaff.setBounds(405, 302, 83, 14);
		mainPanel.add(lblAssignStaff);
		
		lblImg = new JLabel("");
		lblImg.setIcon(new ImageIcon(ISMPanel.class.getResource("/ICONS/\u05D1\u05E8\u05D0\u05D5\u05D3\u05D4.jpg")));
		lblImg.setBounds(10, 11, 153, 146);
		mainPanel.add(lblImg);
		hideButtons();
		
	}
	
	public JPanel getMainPanel()
	{
		return mainPanel;	
	}
	@Override
	public String apHelpButton() {
		return "Here the info system manager can preform its operations";
	}

	@Override
	public String setTitle() {
 		return "ICM Common actions";
	}
}
